package com.traceability.trace.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.traceability.common.annotation.Excel;
import com.traceability.common.core.domain.BaseEntity;

/**
 * 仓库存储管理对象 inventory
 * 
 * @author xulin
 * @date 2025-01-09
 */
public class Inventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long inventoryId;

    /** 农产品 */
    @Excel(name = "农产品")
    private Long productId;

    /** 仓库位置 */
    @Excel(name = "仓库位置")
    private String warehouseLocation;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long quantity;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateDate;

    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setWarehouseLocation(String warehouseLocation) 
    {
        this.warehouseLocation = warehouseLocation;
    }

    public String getWarehouseLocation() 
    {
        return warehouseLocation;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setLastUpdateDate(Date lastUpdateDate) 
    {
        this.lastUpdateDate = lastUpdateDate;
    }

    public Date getLastUpdateDate() 
    {
        return lastUpdateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("productId", getProductId())
            .append("warehouseLocation", getWarehouseLocation())
            .append("quantity", getQuantity())
            .append("lastUpdateDate", getLastUpdateDate())
            .toString();
    }
}
